package observer;

/**
 * 客户端测试
 *
 * @author zhang he qiang
 */
public class ObserverPattern {
    public static void main(String[] args)
    {
        Subject subject=new ConcreteSubject();
        Observer obs1=new ConcreteObserver1();
        Observer obs2=new ConcreteObserver2();
        Observer obs3=new ConcreteObserver3();
        subject.add(obs1);
        subject.add(obs2);
        subject.add(obs3);
        subject.notifyObserver();
    }
}
